describe("TokenMASView", function(){
	
	var tokenMASView = null;
	var tokenMASController = null;

	beforeEach(function(){
		tokenMASController = App.TokenMASController.create();
		tokenMASView = App.TokenMASView.create();
		tokenMASView.set('controller', tokenMASController);
	});
	
	describe("didInsertElement method test", function(){

		it("didInsertElement",function(){
			spyOn(tokenMASView, "_applyValidation");
	        spyOn(tokenMASView, "_applyKeypress");
	        spyOn(BreezeUtils, "applyPlaceholderText");
	        
	        tokenMASView.didInsertElement();
	        
	        expect(tokenMASView._applyValidation).toHaveBeenCalled();
	        expect(tokenMASView._applyKeypress).toHaveBeenCalled();
	        expect(BreezeUtils.applyPlaceholderText).toHaveBeenCalled();
	    });

	});

	describe("_applyValidation method test", function(){

		it("_applyValidation",function(){
	        spyOn(BreezeUtils, "applyInputValidation");
	        
	        tokenMASView._applyValidation();
	        
	        expect(BreezeUtils.applyInputValidation).toHaveBeenCalled();
	    });

	});

});